package org.bim.view.drag.design.api.req;

import lombok.Getter;
import lombok.Setter;
import org.bim.view.drag.design.model.BaseCondition;

/**
 * @author pengxg
 * @date 2021/12/16 3:29 下午
 */
@Getter
@Setter
public class PageReq {
    private Integer current = 1;
    private Integer size = 10;

    public final BaseCondition toCondition() {
        BaseCondition condition = new BaseCondition();
        condition.setPageNum(current);
        condition.setPageSize(size);
        return condition;
    }
}
